package com.cdie.myschool.controller;

import com.cdie.myschool.common.R;
import com.cdie.myschool.domain.dto.StudentCostDTO;
import com.cdie.myschool.domain.vo.StudentCostVO;
import com.cdie.myschool.service.StudentCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 雷金臣199000347
 * @date 2022/10/12 - 19:55
 */
@RestController
public class StudentCostController {
    @Autowired
    private StudentCostService studentCostService;
    @RequestMapping("/getStudentCost")
    public R<StudentCostVO> getStudentCost(@RequestBody StudentCostDTO studentCostDTO){
        R<StudentCostVO> r=studentCostService.getStudentCost(studentCostDTO);
        return R.Success("学生消费详情查询成功！",r);
    }
}
